-- add_attrib2
-- create by panyl
-- 属性+N

return {
    apply = function(source, target, skillId, round, para, value)
        -- 赋予负面状态
        -- PropM.recordDebuff(target, value);

        -- 0伤害
        return { ["damage"] = 0, ["cure"] = 0, };
    end,

    -- 计算四维加成
    calcAddon = function(attrib, baseValue, para)
        if para[1] ~= attrib then
            return 0;
        end

        return para[2];
    end,

    parse = function(desc)
        local arr = string.explode(desc, ",");
        return { arr[1], tonumber(arr[2]), };
    end,
    
    getDetail = function(para)
        local desc = getLocStr("shipskill_add_attrib2");
        local attribName = "airship_" .. para[1];
        desc = string.format(desc, getLocStr(attribName), para[2]);

        return desc;
    end,
};
